package oaSystem.biz;

import java.util.List;

import oaSystem.entity.Employee;

public interface EmployeeBiz {
	Employee fetchEmployeeById(int id);

	List<Employee> getEmployeeByDepartmentIdAndSearch(Integer departmentId,
			int pageNum,
			int pageSize,
			String search,
			String nrsearch);
	
	Employee checkLogin(String nr,String password);
	
	List<Employee> findEmployeeByDepartmentId(Integer departmentId);
	
	void addEmployee(Employee employee);
	
	void updateEmployee(Employee employee);
	
	/**
	 * 注销用户
	 * @param employeeId
	 */
	void logOutEmployee(Integer employeeId);
	
	int getEmployeeCount(Integer departmentId,
			String search,String nrsearch);
}
